home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softwarová Záchrana 3
/
Softwarova-zachrana-3.bin
/
Xteq X-Setup
/
xqdcXSP-Setup-EN.exe
/
{app}
/
plugins
/
XQ WinNT DNS Options 2.xpl
< prev
next >
Wrap
Text File
|
2003-11-19
|
2KB
|
66 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="2"
"COUNT"="1"
"UIPATH"="Network\DNS"
"NAME"="NT DNS Server Time To Live"
"VERSION"="1.06"
"LANGUAGE"="VBScript"
"WARNING"="1"
"OSVERSION"="01000"
"TEXT 1"="TTL"
"DESCRIPTION 1"="The Windows NT DNS service normally caches all queries until their Time To Live (TTL) has expired."
"DESCRIPTION 2"="By setting this field to "0" DNS will no longer cache any name but you can also enter your prefered TTL."
"DESCRIPTION 3"="To restore the original settings, clear the field."
"DESCRIPTION 4"="NOTE: This feature requires NT4 SP4 to work correctly."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
SPC="HKLM\SYSTEM\CurrentControlSet\Services\DNS\"
sP="HKLM\SYSTEM\CurrentControlSet\Services\DNS\Parameters\MaxCacheTtl"
Sub Plugin_Initialize
If RegPathExists(sPC) then
i=RegReadValue(sP)
if IsEmpty(i)=false then
SetUIElement 1,i
end if
else
Disable
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
i=GetUIElement(1)
if i="" then
'Delete Value
i=RegReadValue(sP)
if not isEmpty(i) then
Call RegDeleteValue(sP)
end if
else
'Set Value
if IsNumeric(i) then
Call RegWriteValue(sP,i,2)
Call Restart
else
Call MsgError("Please enter a valid numeric value.")
end if
end if
End Sub
Sub Plugin_Terminate
End Sub